package com.whately.core.database.common.dal.model;

import java.util.ArrayList;
import java.util.List;

public class CommonSequenceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CommonSequenceExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSequenceCodeIsNull() {
            addCriterion("sequence_code is null");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeIsNotNull() {
            addCriterion("sequence_code is not null");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeEqualTo(String value) {
            addCriterion("sequence_code =", value, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeNotEqualTo(String value) {
            addCriterion("sequence_code <>", value, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeGreaterThan(String value) {
            addCriterion("sequence_code >", value, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeGreaterThanOrEqualTo(String value) {
            addCriterion("sequence_code >=", value, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeLessThan(String value) {
            addCriterion("sequence_code <", value, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeLessThanOrEqualTo(String value) {
            addCriterion("sequence_code <=", value, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeLike(String value) {
            addCriterion("sequence_code like", value, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeNotLike(String value) {
            addCriterion("sequence_code not like", value, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeIn(List<String> values) {
            addCriterion("sequence_code in", values, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeNotIn(List<String> values) {
            addCriterion("sequence_code not in", values, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeBetween(String value1, String value2) {
            addCriterion("sequence_code between", value1, value2, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceCodeNotBetween(String value1, String value2) {
            addCriterion("sequence_code not between", value1, value2, "sequenceCode");
            return (Criteria) this;
        }

        public Criteria andSequenceNameIsNull() {
            addCriterion("sequence_name is null");
            return (Criteria) this;
        }

        public Criteria andSequenceNameIsNotNull() {
            addCriterion("sequence_name is not null");
            return (Criteria) this;
        }

        public Criteria andSequenceNameEqualTo(String value) {
            addCriterion("sequence_name =", value, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameNotEqualTo(String value) {
            addCriterion("sequence_name <>", value, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameGreaterThan(String value) {
            addCriterion("sequence_name >", value, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameGreaterThanOrEqualTo(String value) {
            addCriterion("sequence_name >=", value, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameLessThan(String value) {
            addCriterion("sequence_name <", value, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameLessThanOrEqualTo(String value) {
            addCriterion("sequence_name <=", value, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameLike(String value) {
            addCriterion("sequence_name like", value, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameNotLike(String value) {
            addCriterion("sequence_name not like", value, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameIn(List<String> values) {
            addCriterion("sequence_name in", values, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameNotIn(List<String> values) {
            addCriterion("sequence_name not in", values, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameBetween(String value1, String value2) {
            addCriterion("sequence_name between", value1, value2, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceNameNotBetween(String value1, String value2) {
            addCriterion("sequence_name not between", value1, value2, "sequenceName");
            return (Criteria) this;
        }

        public Criteria andSequenceValueIsNull() {
            addCriterion("sequence_value is null");
            return (Criteria) this;
        }

        public Criteria andSequenceValueIsNotNull() {
            addCriterion("sequence_value is not null");
            return (Criteria) this;
        }

        public Criteria andSequenceValueEqualTo(Long value) {
            addCriterion("sequence_value =", value, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceValueNotEqualTo(Long value) {
            addCriterion("sequence_value <>", value, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceValueGreaterThan(Long value) {
            addCriterion("sequence_value >", value, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceValueGreaterThanOrEqualTo(Long value) {
            addCriterion("sequence_value >=", value, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceValueLessThan(Long value) {
            addCriterion("sequence_value <", value, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceValueLessThanOrEqualTo(Long value) {
            addCriterion("sequence_value <=", value, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceValueIn(List<Long> values) {
            addCriterion("sequence_value in", values, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceValueNotIn(List<Long> values) {
            addCriterion("sequence_value not in", values, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceValueBetween(Long value1, Long value2) {
            addCriterion("sequence_value between", value1, value2, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceValueNotBetween(Long value1, Long value2) {
            addCriterion("sequence_value not between", value1, value2, "sequenceValue");
            return (Criteria) this;
        }

        public Criteria andSequenceStepIsNull() {
            addCriterion("sequence_step is null");
            return (Criteria) this;
        }

        public Criteria andSequenceStepIsNotNull() {
            addCriterion("sequence_step is not null");
            return (Criteria) this;
        }

        public Criteria andSequenceStepEqualTo(Integer value) {
            addCriterion("sequence_step =", value, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andSequenceStepNotEqualTo(Integer value) {
            addCriterion("sequence_step <>", value, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andSequenceStepGreaterThan(Integer value) {
            addCriterion("sequence_step >", value, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andSequenceStepGreaterThanOrEqualTo(Integer value) {
            addCriterion("sequence_step >=", value, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andSequenceStepLessThan(Integer value) {
            addCriterion("sequence_step <", value, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andSequenceStepLessThanOrEqualTo(Integer value) {
            addCriterion("sequence_step <=", value, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andSequenceStepIn(List<Integer> values) {
            addCriterion("sequence_step in", values, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andSequenceStepNotIn(List<Integer> values) {
            addCriterion("sequence_step not in", values, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andSequenceStepBetween(Integer value1, Integer value2) {
            addCriterion("sequence_step between", value1, value2, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andSequenceStepNotBetween(Integer value1, Integer value2) {
            addCriterion("sequence_step not between", value1, value2, "sequenceStep");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueIsNull() {
            addCriterion("sequence_init_value is null");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueIsNotNull() {
            addCriterion("sequence_init_value is not null");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueEqualTo(Long value) {
            addCriterion("sequence_init_value =", value, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueNotEqualTo(Long value) {
            addCriterion("sequence_init_value <>", value, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueGreaterThan(Long value) {
            addCriterion("sequence_init_value >", value, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueGreaterThanOrEqualTo(Long value) {
            addCriterion("sequence_init_value >=", value, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueLessThan(Long value) {
            addCriterion("sequence_init_value <", value, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueLessThanOrEqualTo(Long value) {
            addCriterion("sequence_init_value <=", value, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueIn(List<Long> values) {
            addCriterion("sequence_init_value in", values, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueNotIn(List<Long> values) {
            addCriterion("sequence_init_value not in", values, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueBetween(Long value1, Long value2) {
            addCriterion("sequence_init_value between", value1, value2, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceInitValueNotBetween(Long value1, Long value2) {
            addCriterion("sequence_init_value not between", value1, value2, "sequenceInitValue");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeIsNull() {
            addCriterion("sequence_type is null");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeIsNotNull() {
            addCriterion("sequence_type is not null");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeEqualTo(Integer value) {
            addCriterion("sequence_type =", value, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeNotEqualTo(Integer value) {
            addCriterion("sequence_type <>", value, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeGreaterThan(Integer value) {
            addCriterion("sequence_type >", value, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("sequence_type >=", value, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeLessThan(Integer value) {
            addCriterion("sequence_type <", value, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeLessThanOrEqualTo(Integer value) {
            addCriterion("sequence_type <=", value, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeIn(List<Integer> values) {
            addCriterion("sequence_type in", values, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeNotIn(List<Integer> values) {
            addCriterion("sequence_type not in", values, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeBetween(Integer value1, Integer value2) {
            addCriterion("sequence_type between", value1, value2, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequenceTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("sequence_type not between", value1, value2, "sequenceType");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixIsNull() {
            addCriterion("sequence_prefix is null");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixIsNotNull() {
            addCriterion("sequence_prefix is not null");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixEqualTo(String value) {
            addCriterion("sequence_prefix =", value, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixNotEqualTo(String value) {
            addCriterion("sequence_prefix <>", value, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixGreaterThan(String value) {
            addCriterion("sequence_prefix >", value, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixGreaterThanOrEqualTo(String value) {
            addCriterion("sequence_prefix >=", value, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixLessThan(String value) {
            addCriterion("sequence_prefix <", value, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixLessThanOrEqualTo(String value) {
            addCriterion("sequence_prefix <=", value, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixLike(String value) {
            addCriterion("sequence_prefix like", value, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixNotLike(String value) {
            addCriterion("sequence_prefix not like", value, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixIn(List<String> values) {
            addCriterion("sequence_prefix in", values, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixNotIn(List<String> values) {
            addCriterion("sequence_prefix not in", values, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixBetween(String value1, String value2) {
            addCriterion("sequence_prefix between", value1, value2, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequencePrefixNotBetween(String value1, String value2) {
            addCriterion("sequence_prefix not between", value1, value2, "sequencePrefix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixIsNull() {
            addCriterion("sequence_suffix is null");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixIsNotNull() {
            addCriterion("sequence_suffix is not null");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixEqualTo(String value) {
            addCriterion("sequence_suffix =", value, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixNotEqualTo(String value) {
            addCriterion("sequence_suffix <>", value, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixGreaterThan(String value) {
            addCriterion("sequence_suffix >", value, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixGreaterThanOrEqualTo(String value) {
            addCriterion("sequence_suffix >=", value, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixLessThan(String value) {
            addCriterion("sequence_suffix <", value, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixLessThanOrEqualTo(String value) {
            addCriterion("sequence_suffix <=", value, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixLike(String value) {
            addCriterion("sequence_suffix like", value, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixNotLike(String value) {
            addCriterion("sequence_suffix not like", value, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixIn(List<String> values) {
            addCriterion("sequence_suffix in", values, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixNotIn(List<String> values) {
            addCriterion("sequence_suffix not in", values, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixBetween(String value1, String value2) {
            addCriterion("sequence_suffix between", value1, value2, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andSequenceSuffixNotBetween(String value1, String value2) {
            addCriterion("sequence_suffix not between", value1, value2, "sequenceSuffix");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Long value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Long value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Long value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Long value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Long> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Long> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Long value1, Long value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Long value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Long value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Long value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Long value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Long value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Long value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Long> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Long> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Long value1, Long value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Long value1, Long value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}